Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / androidApp / src / fdroid / kotlin / org / meshtastic / app / map / GetMapViewProvider.kt

Displaying Raw • Download

androidApp/src/fdroid/kotlin/org/meshtastic/app/map/GetMapViewProvider.kt renovate/fastlane-2.x-lockfile (056eed64) Text, 2.44 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.app.map

Tff7b72import T7ee787androidx.compose.runtime.getValue
Tff7b72import T7ee787androidx.lifecycle.compose.collectAsStateWithLifecycle
Tff7b72import T7ee787org.koin.compose.koinInject
Tff7b72import T7ee787org.meshtastic.app.map.component.SitePlannerSlot
Tff7b72import T7ee787org.meshtastic.core.ui.util.MapViewProvider
Tff7b72import T7ee787org.meshtastic.feature.map.layers.MapLayersManager
Tff7b72import T7ee787org.meshtastic.feature.map.maplibre.MapLibreMapViewProvider
Tff7b72import T7ee787org.meshtastic.feature.map.maplibre.component.CustomTileSourcesMenuItem
Tff7b72import T7ee787org.meshtastic.feature.map.maplibre.component.ImportedLayersSlot
Tff7b72import T7ee787org.meshtastic.feature.map.maplibre.layers.rememberRenderableLayers

Tff7b72fun Td2a8ffgetMapViewProviderTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3MapViewProvider Tff7b72= Te6edf3MapLibreMapViewProviderTb4b4b4(
Te6edf3customLayers Tff7b72= Tb4b4b4{
Tff7b72val Te6edf3layersManagerTb4b4b4: Te6edf3MapLayersManager Tff7b72= Te6edf3koinInjectTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3layers Tff7b72by Te6edf3layersManagerTb4b4b4.Te6edf3mapLayersTb4b4b4.Te6edf3collectAsStateWithLifecycleTb4b4b4(Tb4b4b4)
T8b949e// KML and KMZ are converted to GeoJSON on the way through; everything else MapLibre fetches directly.
Te6edf3rememberRenderableLayersTb4b4b4(Te6edf3layersManagerTb4b4b4, Te6edf3layersTb4b4b4.Te6edf3filter Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3isVisible Tb4b4b4}Tb4b4b4)
Tb4b4b4}Tb4b4b4,
Te6edf3customBasemaps Tff7b72= Tb4b4b4{ Te6edf3androidCustomRasterBasemapsTb4b4b4(Tb4b4b4) Tb4b4b4}Tb4b4b4,
T8b949e// Everything but the picker is common now; Android is just the platform that has one.
Te6edf3basemapMenuExtra Tff7b72= Tb4b4b4{ Te6edf3CustomTileSourcesMenuItemTb4b4b4(Te6edf3onAddLocalMbTiles Tff7b72= Te6edf3rememberMbTilesImportTb4b4b4(Tb4b4b4)Tb4b4b4) Tb4b4b4}Tb4b4b4,
T8b949e// waypointEditor is not passed: EditWaypointDialog is multiplatform now and the provider defaults to it.
T8b949e// MapLibre's offline packs actually download here; on desktop they never do, so the default is off.
Te6edf3offlineMapsSupported Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3sitePlanner Tff7b72= Tb4b4b4{ Te6edf3session Tff7b72-Tff7b72> Te6edf3SitePlannerSlotTb4b4b4(Te6edf3sessionTb4b4b4) Tb4b4b4}Tb4b4b4,
T8b949e// The same imported-layer manager the Google flavour opens from its layers button.
Te6edf3layersSheetExtra Tff7b72= Tb4b4b4{ Te6edf3ImportedLayersSlotTb4b4b4(Tb4b4b4) Tb4b4b4}Tb4b4b4,
Tb4b4b4)

Served by rngit 1.5.2 - Generated in 0.04s